package com.foreknow.practice.lala;

public class Animal {
    String name;
    int age;
    int love;
    String color;

    public void run() {
        System.out.println("run......");
    }


    public void jump() {
        System.out.println("jump......");
    }

    public void eat() {
        System.out.println("eat......");
    }

    public static void main(String[] args) {
        Animal animal = new Animal();
        animal.name = "tomcat";
        animal.age = 3;
        animal.color = "yellow";
        animal.love = 100;
        System.out.println(animal.name+"---"+animal.age+"---"+animal.color+"---"+animal.love);
        animal.eat();
        animal.run();
        animal.jump();

        Animal animal1 = new Animal();
        animal1.name = "tomcat1";
        animal1.age = 31;
        animal1.color = "yellow1";
        animal1.love = 101;
        System.out.println(animal1.name+"---"+animal1.age+"---"+animal1.color+"---"+animal1.love);
        animal1.eat();
        animal1.run();
        animal1.jump();
    }



}